<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="基础操作关闭系统123[root~]#halt[root~]#shutdown -h 10 #10分钟后关闭[root~]#poweroff  重启系统123[root~]#shutdown -r 10 #10分钟后重启系统 取消重启使用命令shutdown -c[root~]#reboot[root~]#init 6  目录与文件12345[root~]#pwd #查看当前完整目录[root~]">
<meta name="keywords" content="Linux,笔记">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux常用操作">
<meta property="og:url" content="http:&#x2F;&#x2F;yoursite.com&#x2F;2019&#x2F;09&#x2F;26&#x2F;Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C&#x2F;index.html">
<meta property="og:site_name" content="ECIN&#39;S BLOG">
<meta property="og:description" content="基础操作关闭系统123[root~]#halt[root~]#shutdown -h 10 #10分钟后关闭[root~]#poweroff  重启系统123[root~]#shutdown -r 10 #10分钟后重启系统 取消重启使用命令shutdown -c[root~]#reboot[root~]#init 6  目录与文件12345[root~]#pwd #查看当前完整目录[root~]">
<meta property="og:locale" content="en">
<meta property="og:updated_time" content="2019-11-02T06:56:14.000Z">
<meta name="twitter:card" content="summary">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>Linux常用操作</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2019/09/21/centOS%E5%AE%89%E8%A3%85%E6%93%8D%E4%BD%9CDocker/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&text=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&is_video=false&description=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Linux常用操作&body=Check out this article: http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/" target="_blank" rel="noopener"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&name=Linux常用操作&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&t=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#基础操作"><span class="toc-number">1.</span> <span class="toc-text">基础操作</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#关闭系统"><span class="toc-number">1.1.</span> <span class="toc-text">关闭系统</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#重启系统"><span class="toc-number">1.2.</span> <span class="toc-text">重启系统</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#目录与文件"><span class="toc-number">1.3.</span> <span class="toc-text">目录与文件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#修改tab键缩进空格长度"><span class="toc-number">1.4.</span> <span class="toc-text">修改tab键缩进空格长度</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#head与tail命令"><span class="toc-number">1.5.</span> <span class="toc-text">head与tail命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#cat命令"><span class="toc-number">1.6.</span> <span class="toc-text">cat命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#uniq命令"><span class="toc-number">1.7.</span> <span class="toc-text">uniq命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#grep命令"><span class="toc-number">1.8.</span> <span class="toc-text">grep命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#复制文件-更改文件名字"><span class="toc-number">1.9.</span> <span class="toc-text">复制文件 更改文件名字</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#find-whereis-which-查找命令"><span class="toc-number">1.10.</span> <span class="toc-text">find whereis which 查找命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#压缩解压"><span class="toc-number">1.11.</span> <span class="toc-text">压缩解压</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#进程操作"><span class="toc-number">1.12.</span> <span class="toc-text">进程操作</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#显示历史指令"><span class="toc-number">1.13.</span> <span class="toc-text">显示历史指令</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#实用操作"><span class="toc-number">2.</span> <span class="toc-text">实用操作</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#安装Python3-7"><span class="toc-number">2.1.</span> <span class="toc-text">安装Python3.7</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#vi编辑器"><span class="toc-number">2.2.</span> <span class="toc-text">vi编辑器</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#后台永久运行jar"><span class="toc-number">2.3.</span> <span class="toc-text">后台永久运行jar</span></a></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        Linux常用操作
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">ECIN'S BLOG</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2019-09-26T09:15:33.000Z" itemprop="datePublished">2019-09-26</time>
        
      
    </div>


      

      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/Linux/" rel="tag">Linux</a>, <a class="tag-link" href="/tags/%E7%AC%94%E8%AE%B0/" rel="tag">笔记</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h3 id="基础操作"><a href="#基础操作" class="headerlink" title="基础操作"></a>基础操作</h3><h4 id="关闭系统"><a href="#关闭系统" class="headerlink" title="关闭系统"></a>关闭系统</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[root~]#halt</span><br><span class="line">[root~]#shutdown -h 10 #10分钟后关闭</span><br><span class="line">[root~]#poweroff</span><br></pre></td></tr></table></figure>

<h4 id="重启系统"><a href="#重启系统" class="headerlink" title="重启系统"></a>重启系统</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[root~]#shutdown -r 10 #10分钟后重启系统 取消重启使用命令shutdown -c</span><br><span class="line">[root~]#reboot</span><br><span class="line">[root~]#init 6</span><br></pre></td></tr></table></figure>

<h4 id="目录与文件"><a href="#目录与文件" class="headerlink" title="目录与文件"></a>目录与文件</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">[root~]#pwd #查看当前完整目录</span><br><span class="line">[root~]#cd #返回/root根路径</span><br><span class="line">[root~]#cd..#返回上一级目录</span><br><span class="line">[root~]#cd /root/usr #进入/root/usr目录</span><br><span class="line">[root~]#mkdir temp #在当前路径创建temp文件夹</span><br></pre></td></tr></table></figure>

<h4 id="修改tab键缩进空格长度"><a href="#修改tab键缩进空格长度" class="headerlink" title="修改tab键缩进空格长度"></a>修改tab键缩进空格长度</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[root~]#vi ~/.vimrc #编辑这个文件，有可能为空</span><br><span class="line"><span class="meta">#</span><span class="bash">在vimrc添加一行代码 -- <span class="built_in">set</span> tabstop=4</span></span><br><span class="line"><span class="meta">#</span><span class="bash">wq保存</span></span><br></pre></td></tr></table></figure>

<h4 id="head与tail命令"><a href="#head与tail命令" class="headerlink" title="head与tail命令"></a>head与tail命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">[root~]#head -10 file#显示文件前10行</span><br><span class="line">[root~]#tail -10 file#显示文件后10行</span><br></pre></td></tr></table></figure>

<h4 id="cat命令"><a href="#cat命令" class="headerlink" title="cat命令"></a>cat命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">[root~]#cat &gt; file#创建一个文件，并且开始写入Ctrl+D结束编辑</span><br><span class="line">[root~]#cat file#显示文件文本内容</span><br></pre></td></tr></table></figure>

<h4 id="uniq命令"><a href="#uniq命令" class="headerlink" title="uniq命令"></a>uniq命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[root~]#uniq file#显示去除重复行后的文件内容</span><br></pre></td></tr></table></figure>

<h4 id="grep命令"><a href="#grep命令" class="headerlink" title="grep命令"></a>grep命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[root~]#grep 'a' file#显示包含字母a的行</span><br><span class="line">[root~]#grep -c 'a' file#显示包含字母a的行的行数</span><br><span class="line">[root~]#head -10 file#显示文件前10行</span><br></pre></td></tr></table></figure>

<h4 id="复制文件-更改文件名字"><a href="#复制文件-更改文件名字" class="headerlink" title="复制文件 更改文件名字"></a>复制文件 更改文件名字</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[root~]#mv a b #将文件名a改为文件名b</span><br><span class="line">[root~]#mv a root/#移动文件到root目录下</span><br><span class="line">[root~]#cp a root/ #复制文件到root目录下</span><br></pre></td></tr></table></figure>

<h4 id="find-whereis-which-查找命令"><a href="#find-whereis-which-查找命令" class="headerlink" title="find whereis which 查找命令"></a>find whereis which 查找命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">[root~]#find -name "java*" #查找java开头的文件</span><br><span class="line">[root~]#find -atime -1 #搜索一天内存取过的文件</span><br><span class="line">[root~]#find / -empty #查找空目录</span><br><span class="line">[root~]#find / -user nice #查找属于nice的文件</span><br><span class="line"></span><br><span class="line">[root~]#whereis python #查看python的位置,whereis只能查找源代码，二进制文件，帮助文件</span><br><span class="line"></span><br><span class="line">[root~]#which python #查看python的位置，只能查找$PATH环境变量中的文件</span><br></pre></td></tr></table></figure>

<h4 id="压缩解压"><a href="#压缩解压" class="headerlink" title="压缩解压"></a>压缩解压</h4><h4 id="进程操作"><a href="#进程操作" class="headerlink" title="进程操作"></a>进程操作</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">[root~]#ps -A #查看当前所有进程</span><br><span class="line">[root~]#ps -ef | grep java #查看名为java的进程</span><br><span class="line">[root~]#pkill java #终止程序名为java的进程</span><br><span class="line">[root~]#killall -9 java #终止程序名为java的进程</span><br><span class="line">[root~]#kill -9 1024 #终止进程号为1024的进程</span><br></pre></td></tr></table></figure>

<h4 id="显示历史指令"><a href="#显示历史指令" class="headerlink" title="显示历史指令"></a>显示历史指令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[root~]#history 100 #显示输入的最近100条历史指令</span><br></pre></td></tr></table></figure>



<h3 id="实用操作"><a href="#实用操作" class="headerlink" title="实用操作"></a>实用操作</h3><h4 id="安装Python3-7"><a href="#安装Python3-7" class="headerlink" title="安装Python3.7"></a>安装Python3.7</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">[root~]#yum -y install gcc #安装依赖</span><br><span class="line">[root~]#yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel #安装其他依赖包</span><br><span class="line">[root~]#wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz #下载python3.7</span><br><span class="line">[root~]#tar -zxvf Python-3.7.0.tgz #解压</span><br><span class="line">[root~]#mkdir /usr/local/python3 #建立存放python3.7的目录</span><br><span class="line">[root~]#cd Python-3.7.0 #进入解压后的目录</span><br><span class="line">[root~]#./configure --prefix=/usr/local/python3 #安装到/usr/local/python3</span><br><span class="line">[root~]#make &amp;&amp; make install #安装命令</span><br><span class="line">[root~]#ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 #建立软链接</span><br><span class="line">[root~]#ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3 #建立软链接</span><br><span class="line">[root~]#python3 #python3.7命令</span><br><span class="line">[root~]#pip3 #pip3命令</span><br></pre></td></tr></table></figure>

<h4 id="vi编辑器"><a href="#vi编辑器" class="headerlink" title="vi编辑器"></a>vi编辑器</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[root~]#set number显示行号</span><br></pre></td></tr></table></figure>

<h4 id="后台永久运行jar"><a href="#后台永久运行jar" class="headerlink" title="后台永久运行jar"></a>后台永久运行jar</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nohup java -jar blog-0.0.1-SNAPSHOT.jar &gt; log.file 2&gt;&amp;1 &amp;</span><br></pre></td></tr></table></figure>
<p>log.file为日志输出文件</p>

  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#基础操作"><span class="toc-number">1.</span> <span class="toc-text">基础操作</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#关闭系统"><span class="toc-number">1.1.</span> <span class="toc-text">关闭系统</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#重启系统"><span class="toc-number">1.2.</span> <span class="toc-text">重启系统</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#目录与文件"><span class="toc-number">1.3.</span> <span class="toc-text">目录与文件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#修改tab键缩进空格长度"><span class="toc-number">1.4.</span> <span class="toc-text">修改tab键缩进空格长度</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#head与tail命令"><span class="toc-number">1.5.</span> <span class="toc-text">head与tail命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#cat命令"><span class="toc-number">1.6.</span> <span class="toc-text">cat命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#uniq命令"><span class="toc-number">1.7.</span> <span class="toc-text">uniq命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#grep命令"><span class="toc-number">1.8.</span> <span class="toc-text">grep命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#复制文件-更改文件名字"><span class="toc-number">1.9.</span> <span class="toc-text">复制文件 更改文件名字</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#find-whereis-which-查找命令"><span class="toc-number">1.10.</span> <span class="toc-text">find whereis which 查找命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#压缩解压"><span class="toc-number">1.11.</span> <span class="toc-text">压缩解压</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#进程操作"><span class="toc-number">1.12.</span> <span class="toc-text">进程操作</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#显示历史指令"><span class="toc-number">1.13.</span> <span class="toc-text">显示历史指令</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#实用操作"><span class="toc-number">2.</span> <span class="toc-text">实用操作</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#安装Python3-7"><span class="toc-number">2.1.</span> <span class="toc-text">安装Python3.7</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#vi编辑器"><span class="toc-number">2.2.</span> <span class="toc-text">vi编辑器</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#后台永久运行jar"><span class="toc-number">2.3.</span> <span class="toc-text">后台永久运行jar</span></a></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&text=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&is_video=false&description=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Linux常用操作&body=Check out this article: http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/" target="_blank" rel="noopener"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&title=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&name=Linux常用操作&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/&t=Linux常用操作" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 ECIN520
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">

    <!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<!-- clipboard -->

  <script src="/lib/clipboard/clipboard.min.js"></script>
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Disqus Comments -->


</body>
</html>
